<?php
namespace Tongcheng\Controller;
use Think\Controller;
class OrderController extends CommonController {
    public function index(){
    	$model = M("Order");
    	$map['wid'] = session('wid');
    	$list = $model->where($map)->find();
        $this->display();
    }

    public function add(){
    	$model = M("InfoCate");
    	$map['wid'] = session('wid');
    }

    public function edit(){
    	$model = M("InfoCate");
    	$map['wid'] = session('wid');
    }

    public function del(){
    	$model = M("InfoCate");
    	$map['wid'] = session('wid');
    }
}